package com.itheima.ticket.mai1;

public class MaiPiao {

    public static void main(String[] args) {

        Ticket ticket = new Ticket();
        Thread t1 = new Thread(ticket);
        Thread t2 = new Thread(ticket);
        Thread t3 = new Thread(ticket);
        t1.setName("小张");
        t2.setName("小王");
        t3.setName("小李");
        t1.start();
        t2.start();
        t3.start();


    }
}
